package io.afu.baseframework.service.impl;

import io.afu.baseframework.annotations.Permission;
import io.afu.baseframework.service.PermissionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

@Service
public class PermissionServiceImpl implements PermissionService {


    private final Logger logger = LoggerFactory.getLogger(getClass());

    // 具体鉴权逻辑，这里空置，需要自己实现
    public void checkPermission(HttpServletRequest request, HttpServletResponse response, Permission permission) {
        logger.info("默认PermissionService实现，不做任何鉴权");




    }

}
